Optimal. Leaf size=16 \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d}+C x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0475166, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.107, Rules used = {3010, 2735, 3770} \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d}+C x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3010
Rule 2735
Rule 3770
Rubi steps
\begin{align*} \int \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^2(c+d x) \, dx &=\int (B+C \cos (c+d x)) \sec (c+d x) \, dx\\ &=C x+B \int \sec (c+d x) \, dx\\ &=C x+\frac{B \tanh ^{-1}(\sin (c+d x))}{d}\\ \end{align*}
Mathematica [A] time = 0.0060913, size = 16, normalized size = 1. \[ \frac{B \tanh ^{-1}(\sin (c+d x))}{d}+C x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.035, size = 30, normalized size = 1.9 \begin{align*} Cx+{\frac{B\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}}+{\frac{Cc}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.32661, size = 50, normalized size = 3.12 \begin{align*} \frac{2 \,{\left (d x + c\right )} C + B{\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.67482, size = 95, normalized size = 5.94 \begin{align*} \frac{2 \, C d x + B \log \left (\sin \left (d x + c\right ) + 1\right ) - B \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (B + C \cos{\left (c + d x \right )}\right ) \cos{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.26151, size = 58, normalized size = 3.62 \begin{align*} \frac{{\left (d x + c\right )} C + B \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right ) - B \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]